package Day2025_01_13;

import java.io.FileInputStream;
import java.io.IOException;

public class Demo_02_InputStream {
    public static void main(String[] args) throws IOException {
        FileInputStream inputStream = new FileInputStream("E:/temp/java114/abc.txt");
        byte[] bytes = new byte[1024];
        while (true) {
            int len = inputStream.read(bytes);
            if (len == -1) break;
            for (int i = 0; i < len; i++) {
                System.out.println(bytes[i]);
            }
        }
        inputStream.close();
    }
}
